import request from '@/utils/request'

export function listtsCourse(query) {
  return request({
    url: '/tsCourse/list',
    method: 'get',
    params: query
  })
}

export function createtsCourse(data) {
  return request({
    url: '/tsCourse/create',
    method: 'post',
    data
  })
}

export function readtsCourse(data) {
  return request({
    url: '/tsCourse/get/' + data.id,
    method: 'get'
  })
}

export function updatetsCourse(data) {
  return request({
    url: '/tsCourse/update',
    method: 'post',
    data
  })
}

export function deletetsCourse(data) {
  return request({
    url: '/tsCourse/delete/' + data.fcourseno,
    method: 'delete'
  })
}
